package org.ims.inv.dao.system;

import java.util.List;

import org.ims.inv.model.system.ModelAppDictionary;

import cn.trymore.core.dao.DAOGeneric;
import cn.trymore.core.exception.DAOException;

/**
 * DAO: 数据字典
 * 
 * @author Jeccy.Zhao
 *
 */
public interface DAOAppDictionary
extends DAOGeneric<ModelAppDictionary>
{
	/**
	 * Obtains entity by dictionary key
	 * 
	 * @param key
	 * @return
	 * @throws DAOException
	 */
	ModelAppDictionary getByKey (String key) throws DAOException;
	
	/**
	 * Obtains entity by dictionary type
	 * 
	 * @param type
	 * @return
	 * @throws DAOException
	 * */
	List<ModelAppDictionary> getByType(String type) throws DAOException;
}
